<?php

class Empeval_Methods_Response_AddEmpeval {
	
	/**
	 *
	 * @var Empeval_Methods_Data_ResponseStatus
	 */
	public $responseStatus;
	
	/**
	 * 
	 * @var Empeval_Methods_Data_Summary
	 */
	public $summary;
	
	/**
	 *
	 * @var Empeval_Methods_Data_EmployeeEvaluation
	 */
	public $evaluation;
	
	/**
	 * 
	 * @var Empeval_Methods_Data_CompetanceGroup[]
	 */
	public $competanceGroups = array();
	
	/**
	 * 
	 * @var Empeval_Methods_Data_Evaluation[]
	 */
	public $evaluations = array();
	
	public function __construct($status, $summary, $empeval, $cgs, $es) {
		$this->responseStatus = new Empeval_Methods_Data_ResponseStatus($status);
		$this->summary = new Empeval_Methods_Data_Summary($summary);
		$this->evaluation = new Empeval_Methods_Data_EmployeeEvaluation($empeval);
		foreach ($cgs as $cg) {
			$this->competanceGroups[] = new Empeval_Methods_Data_CompetanceGroup($cg);
		}
		foreach ($es as $e) {
			$this->evaluations[] = new Empeval_Methods_Data_Evaluation($e);
		}
	}
	
}